/*
 * linkedlist.h
 *
 *      Modified version of: http://codingfreak.blogspot.com/2010/04/singly-linked-list-in-c.html
 */

#ifndef LINKEDLIST_H_
#define LINKEDLIST_H_

#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <defs.h>

//Structure containing a Data part & a
//Link part to the next node in the List
struct Node {
	note_s Data;
	struct Node *Next;
}*Head;

int32_t linkedlist_length(void);
bool linkedlist_delNodeData(uint8_t noteID);
bool linkedlist_noteAlreadyInList(uint8_t noteID);
void linkedlist_addBeg(note_s note);
note_s linkedlist_getBeg(void);
bool linkedlist_empty(void);

#endif /* LINKEDLIST_H_ */
